package com.itheima.set;

import com.itheima.domain.Student;

import java.util.TreeSet;

public class Demo03 {

    public static void main(String[] args) {
        TreeSet<Student> set = new TreeSet<>();
        set.add(new Student("坤坤3",27));
        set.add(new Student("坤坤2",26));
        set.add(new Student("坤坤5",26));


        System.out.println(set);
    }
}
